import request from '@/utils/request'

let serviceApi = {
	/*聊天用户列表*/
	servicelist(data, errorback) {
		return request._post('/service/chat/chat/index', data, errorback);
	},
	/*聊天记录列表*/
	recordlist(data, errorback) {
		return request._postBody('/service/chat/chat/record', data, errorback);
	},
	/*用户信息*/
	getinfo(data, errorback) {
		return request._post('/service/chat/chat/getInfo', data, errorback);
	},
	/*聊天移除*/
	// remove(data, errorback) {
	//     return request._post('/service/chat/chat/remove', data, errorback);
	// },
	remove(data, errorback) {
		return request._post('/service/chat/chat/removeChat', data, errorback);
	},
}

export default serviceApi;